﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoundationClass.Data;

namespace FoundationClass.Entity
{
    public class Payment
    {
        public int PaidId { get; set; }
        public DateTime PaidTime { get; set; }
        public double TotalAmount { get; set; }
        public User Employee { get; set; }

        public void AddPayment()
        {
            PaymentData.InsertPayment(this);
        }

        public void UpdatePayment()
        {
            PaymentData.UpdatePayment(this);
        }
    }
}
